package com.itfreer.data.general;

import com.itfreer.data.general.domain.IDomain;
import com.itfreer.data.general.domain.MemDomain;

import java.util.HashMap;
import java.util.LinkedHashMap;

/**
 * 类功能说明 全局数据类型字典
 */
public class GlobalDataTypeDic {
	private static HashMap<String, String> result;
	
	private static IDomain pDomain;

	static {
		result = new LinkedHashMap<String, String>();
		result.put("BOOLEAN", "布尔值");
		result.put("CHAR", "字符型");
		result.put("STRING", "字符串");
		result.put("TEXT", "大文本型");
		result.put("DATE", "日期型");
		result.put("DATETIME", "日期时间型");
		result.put("DECIMAL", "大双精度浮点数");
		result.put("DOUBLE", "双精度浮点数");
		result.put("SINGLE", "单精度浮点数字");
		result.put("INT16", "短整型");
		result.put("int", "整型");
		result.put("INT64", "长整型");
		result.put("UINT16", "无符号短整型");
		result.put("Uint", "无符号整型");
		result.put("UINT64", "无符号长整型");
		result.put("BYTEARRAY", "二进制流类型");
		result.put("NODEFAULT", "未定义");
		
		pDomain = new MemDomain(result, "(元数据)字段类型");
	}
	
	public static IDomain getDomain(){
		return pDomain;
	}
}